//
// Created by guanj on 16-2-23.
//

#include "com_base_util_jniutils_thread_JniThreadManager.h"

#include "thread/Thread.h"
#include "thread/ThreadSharePointer.h"

/*
 * Class:     com_base_util_jniutils_thread_JniThreadManager
 * Method:    NATIVE_THREAD_UNIT_TESTING
 * Signature: ()V
 */
JNIEXPORT void JNICALL Java_com_base_util_jniutils_thread_JniThreadManager_NATIVE_1THREAD_1UNIT_1TESTING
        (JNIEnv *, jclass) {
#ifdef FLAG_UNIT_TESTING
    thread_unit_testing();
#endif
}

/*
 * Class:     com_base_util_jniutils_thread_JniThreadManager
 * Method:    NATIVE_THREAD_SHARE_POINTER_UNIT_TESTING
 * Signature: ()V
 */
JNIEXPORT void JNICALL Java_com_base_util_jniutils_thread_JniThreadManager_NATIVE_1THREAD_1SHARE_1POINTER_1UNIT_1TESTING
        (JNIEnv *, jclass) {
#ifdef FLAG_UNIT_TESTING
    thread_share_pointer_unit_testing();
#endif
}

